
<!doctype html>
<html class="no-js">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>集品</title>
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <!-- No Baidu Siteapp-->
    <meta http-equiv="Cache-Control" content="no-siteapp"/>

    <!-- Add to homescreen for Chrome on Android -->
    <meta name="mobile-web-app-capable" content="yes">

    <!-- Add to homescreen for Safari on iOS -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>

    <link rel="stylesheet" href="__PUBLIC__/assets/css/amazeui.min.css">
    <link rel="stylesheet" href="__PUBLIC__/assets/css/app.css">
    <link rel="stylesheet" href="__PUBLIC__/assets/css/index.css">
    <script src="__PUBLIC__/assets/js/jquery.min.js"></script>
    <!--必要样式-->
    <style type="text/css">
        body {
            background-color: #EFEFEF;
        }

    </style>
</head>

<body>
<!--<header data-am-widget="header" class="am-header am-header-default am-header-fixed" style="background-color: #ffad01">
    <div class="am-header-left am-header-nav">
    </div>
  &lt;!&ndash;  <h1 class="am-header-title">
        <a href="#title-link" class="">
            收银台
        </a>
    </h1>&ndash;&gt;
    <div class="am-header-right am-header-nav">
    </div>
</header>-->

<div class="am-g whiteBg" style="margin-top:5px;padding:15px 0;">
    <div class="am-u-sm-12" align="center">
        <span style="font-size: 18px">集品商城充值</span><br>
        <span style="font-size:44px;font-weight: bold;">￥{:number_format($money,2)}</span><br>
        <!--<span style="font-size:14px;color:#999;">集品充值</span>-->

    </div>
</div>
<div class="am-u-sm-12" style=" background-color: #fff; height: 45px;">
    <span style="font-size: 16px;color:#999;float: left;padding-top: 9px;">收款方</span>
    <span style="font-size: 16px;/* color:#999; */float: right;padding-top: 9px;">集品商城</span>
</div>

<div class="am-u-sm-12" style="margin-top: 16px;">
    <button onclick="docallpay()" style="border:none;border-radius:10px;width: 100%;background-color: #FFAD01;padding-top:10px;padding-bottom: 10px;color:#fff; ">
        立即支付
    </button>
</div>
<!--[if (gte IE 9)|!(IE)]><!-->

<script src="__PUBLIC__/assets/js/amazeui.min.js"></script>
<script type="text/javascript">
    //调用微信JS api 支付
    function jsApiCall()
    {
        WeixinJSBridge.invoke(
                'getBrandWCPayRequest',
                {$jsApiParameters},
                function(res){
                    WeixinJSBridge.log(res.err_msg);
//                        window.location.href='__APP__/Home/';
//                    alert(res.err_code+res.err_desc+res.err_msg);
                    console.info(res.return_code);
                    if(res.return_code == "SUCCESS"){
                        window.location.href='__APP__/Home/Me';
                    }else{
                        window.location.href='__APP__/Home/Me';
                    }
                }
        );
    }

    function docallpay()
    {
        if (typeof WeixinJSBridge == "undefined"){
            if( document.addEventListener ){
                document.addEventListener('WeixinJSBridgeReady', jsApiCall, false);
            }else if (document.attachEvent){
                document.attachEvent('WeixinJSBridgeReady', jsApiCall);
                document.attachEvent('onWeixinJSBridgeReady', jsApiCall);
            }
        }else{
            jsApiCall();
        }
    }
//    $(function () {
//        docallpay();
//    });
</script>
</body>

</html>
